package com.ruoyi.compensationManagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.compensationManagement.mapper.CompensationRetirespayrollLogMapper;
import com.ruoyi.compensationManagement.domain.CompensationRetirespayrollLog;
import com.ruoyi.compensationManagement.service.ICompensationRetirespayrollLogService;

/**
 * 退休人员补贴工资修改日志Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-16
 */
@Service
public class CompensationRetirespayrollLogServiceImpl implements ICompensationRetirespayrollLogService
{
    @Autowired
    private CompensationRetirespayrollLogMapper compensationRetirespayrollLogMapper;

    /**
     * 查询退休人员补贴工资修改日志
     *
     * @param logId 退休人员补贴工资修改日志主键
     * @return 退休人员补贴工资修改日志
     */
    @Override
    public CompensationRetirespayrollLog selectCompensationRetirespayrollLogByLogId(Long logId)
    {
        return compensationRetirespayrollLogMapper.selectCompensationRetirespayrollLogByLogId(logId);
    }

    /**
     * 查询退休人员补贴工资修改日志列表
     *
     * @param compensationRetirespayrollLog 退休人员补贴工资修改日志
     * @return 退休人员补贴工资修改日志
     */
    @Override
    public List<CompensationRetirespayrollLog> selectCompensationRetirespayrollLogList(CompensationRetirespayrollLog compensationRetirespayrollLog)
    {
        return compensationRetirespayrollLogMapper.selectCompensationRetirespayrollLogList(compensationRetirespayrollLog);
    }

    /**
     * 新增退休人员补贴工资修改日志
     *
     * @param compensationRetirespayrollLog 退休人员补贴工资修改日志
     * @return 结果
     */
    @Override
    public int insertCompensationRetirespayrollLog(CompensationRetirespayrollLog compensationRetirespayrollLog)
    {
        return compensationRetirespayrollLogMapper.insertCompensationRetirespayrollLog(compensationRetirespayrollLog);
    }

    /**
     * 修改退休人员补贴工资修改日志
     *
     * @param compensationRetirespayrollLog 退休人员补贴工资修改日志
     * @return 结果
     */
    @Override
    public int updateCompensationRetirespayrollLog(CompensationRetirespayrollLog compensationRetirespayrollLog)
    {
        return compensationRetirespayrollLogMapper.updateCompensationRetirespayrollLog(compensationRetirespayrollLog);
    }

    /**
     * 批量删除退休人员补贴工资修改日志
     *
     * @param logIds 需要删除的退休人员补贴工资修改日志主键
     * @return 结果
     */
    @Override
    public int deleteCompensationRetirespayrollLogByLogIds(Long[] logIds)
    {
        return compensationRetirespayrollLogMapper.deleteCompensationRetirespayrollLogByLogIds(logIds);
    }

    /**
     * 删除退休人员补贴工资修改日志信息
     *
     * @param logId 退休人员补贴工资修改日志主键
     * @return 结果
     */
    @Override
    public int deleteCompensationRetirespayrollLogByLogId(Long logId)
    {
        return compensationRetirespayrollLogMapper.deleteCompensationRetirespayrollLogByLogId(logId);
    }
}
